package com.zr.spring.xml;

import org.springframework.beans.factory.FactoryBean;

public class XmlBeanFactory implements FactoryBean<Student> {

    private String msg = "hello world";

    @Override
    public Student getObject() throws Exception {
        return new Student("zhagnrui", 34);
    }

    @Override
    public Class<Student> getObjectType() {
        return Student.class;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
